package com.lsp.microorder.pay.task;

import com.lsp.microorder.pay.service.DropOrderService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class PayTask {

    @Resource
    private DropOrderService dropOrderService;

    @XxlJob("rollPayTask")
    public void rollPayTask(){
        dropOrderService.rollDropTask();
    }
}
